﻿using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Reflection;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

namespace SalesForecastStateWorkflow
{
    public sealed partial class Workflow1
    {
        #region Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCode]
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Runtime.CorrelationToken correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind4 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind5 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind6 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind7 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind8 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind9 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind10 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind11 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind12 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind13 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind14 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind15 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind16 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind17 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind18 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind19 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind20 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind21 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition2 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Runtime.CorrelationToken correlationtoken2 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.ComponentModel.ActivityBind activitybind22 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind23 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind24 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind25 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind26 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind27 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Runtime.CorrelationToken correlationtoken3 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.ComponentModel.ActivityBind activitybind28 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind29 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind30 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind31 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind32 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind33 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind34 = new System.Workflow.ComponentModel.ActivityBind();
            this.setStateActivity4 = new System.Workflow.Activities.SetStateActivity();
            this.sendRequestChangesEmail = new Microsoft.SharePoint.WorkflowActions.SendEmail();
            this.Log_ChangeRequest = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.setRequestChangesHistoryDescription = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity3 = new System.Workflow.Activities.SetStateActivity();
            this.sendRejectedEmail = new Microsoft.SharePoint.WorkflowActions.SendEmail();
            this.Log_Rejection = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.setRejectedHistoryDescription = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity2 = new System.Workflow.Activities.SetStateActivity();
            this.sendApprovedEmail = new Microsoft.SharePoint.WorkflowActions.SendEmail();
            this.Log_Approval = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.setApprovedHistoryDescription = new System.Workflow.Activities.CodeActivity();
            this.If_ChangesRequested = new System.Workflow.Activities.IfElseBranchActivity();
            this.If_Rejected = new System.Workflow.Activities.IfElseBranchActivity();
            this.If_Approved = new System.Workflow.Activities.IfElseBranchActivity();
            this.completeReviewTask = new Microsoft.SharePoint.WorkflowActions.CompleteTask();
            this.setStateActivity5 = new System.Workflow.Activities.SetStateActivity();
            this.onTaskChanged2 = new Microsoft.SharePoint.WorkflowActions.OnTaskChanged();
            this.CreateReviewTask = new Microsoft.SharePoint.WorkflowActions.CreateTask();
            this.SelectReviewAction = new System.Workflow.Activities.IfElseActivity();
            this.Complete_Pending_Review_Task = new Microsoft.SharePoint.WorkflowActions.CompleteTask();
            this.ReviewInitiated = new Microsoft.SharePoint.WorkflowActions.OnTaskChanged();
            this.sendApprovalRequestedEmail = new System.Workflow.Activities.CodeActivity();
            this.createTask1 = new Microsoft.SharePoint.WorkflowActions.CreateTask();
            this.setStateActivity1 = new System.Workflow.Activities.SetStateActivity();
            this.onWorkflowActivated1 = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
            this.FinalizeReview = new System.Workflow.Activities.StateFinalizationActivity();
            this.Document_Review = new System.Workflow.Activities.EventDrivenActivity();
            this.InitializeRevew = new System.Workflow.Activities.StateInitializationActivity();
            this.FinalizeReviewResults = new System.Workflow.Activities.StateFinalizationActivity();
            this.Evaluate_Review_Status = new System.Workflow.Activities.EventDrivenActivity();
            this.DetermineCurrentState = new System.Workflow.Activities.StateInitializationActivity();
            this.InitializeWorkflow = new System.Workflow.Activities.EventDrivenActivity();
            this.CompletedState = new System.Workflow.Activities.StateActivity();
            this.RequestReviewState = new System.Workflow.Activities.StateActivity();
            this.RequestApprovalState = new System.Workflow.Activities.StateActivity();
            this.Workflow1InitialState = new System.Workflow.Activities.StateActivity();
            // 
            // setStateActivity4
            // 
            this.setStateActivity4.Name = "setStateActivity4";
            this.setStateActivity4.TargetStateName = "RequestReviewState";
            // 
            // sendRequestChangesEmail
            // 
            this.sendRequestChangesEmail.BCC = null;
            activitybind1.Name = "Workflow1";
            activitybind1.Path = "EmailBody";
            this.sendRequestChangesEmail.CC = null;
            correlationtoken1.Name = "workflowToken";
            correlationtoken1.OwnerActivityName = "Workflow1";
            this.sendRequestChangesEmail.CorrelationToken = correlationtoken1;
            activitybind2.Name = "Workflow1";
            activitybind2.Path = "EmailFrom";
            activitybind3.Name = "Workflow1";
            activitybind3.Path = "MailHeaders";
            this.sendRequestChangesEmail.IncludeStatus = false;
            this.sendRequestChangesEmail.Name = "sendRequestChangesEmail";
            activitybind4.Name = "Workflow1";
            activitybind4.Path = "EmailSubject";
            activitybind5.Name = "Workflow1";
            activitybind5.Path = "EmailTo";
            this.sendRequestChangesEmail.MethodInvoking += new System.EventHandler(this.sendChangesRequestedEmail_MethodInvoking);
            this.sendRequestChangesEmail.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.BodyProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.sendRequestChangesEmail.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.FromProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.sendRequestChangesEmail.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.HeadersProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            this.sendRequestChangesEmail.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.SubjectProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            this.sendRequestChangesEmail.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.ToProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            // 
            // Log_ChangeRequest
            // 
            this.Log_ChangeRequest.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.Log_ChangeRequest.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            activitybind6.Name = "Workflow1";
            activitybind6.Path = "HistoryDescription";
            this.Log_ChangeRequest.HistoryOutcome = "";
            this.Log_ChangeRequest.Name = "Log_ChangeRequest";
            this.Log_ChangeRequest.OtherData = "";
            activitybind7.Name = "Workflow1";
            activitybind7.Path = "logToHistoryListActivity_UserId";
            this.Log_ChangeRequest.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
            this.Log_ChangeRequest.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.UserIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
            // 
            // setRequestChangesHistoryDescription
            // 
            this.setRequestChangesHistoryDescription.Name = "setRequestChangesHistoryDescription";
            this.setRequestChangesHistoryDescription.ExecuteCode += new System.EventHandler(this.setRequestChangesHistoryDescription_ExecuteCode);
            // 
            // setStateActivity3
            // 
            this.setStateActivity3.Name = "setStateActivity3";
            this.setStateActivity3.TargetStateName = "CompletedState";
            // 
            // sendRejectedEmail
            // 
            this.sendRejectedEmail.BCC = null;
            activitybind8.Name = "Workflow1";
            activitybind8.Path = "EmailBody";
            this.sendRejectedEmail.CC = null;
            this.sendRejectedEmail.CorrelationToken = correlationtoken1;
            activitybind9.Name = "Workflow1";
            activitybind9.Path = "EmailFrom";
            activitybind10.Name = "Workflow1";
            activitybind10.Path = "MailHeaders";
            this.sendRejectedEmail.IncludeStatus = false;
            this.sendRejectedEmail.Name = "sendRejectedEmail";
            activitybind11.Name = "Workflow1";
            activitybind11.Path = "EmailSubject";
            activitybind12.Name = "Workflow1";
            activitybind12.Path = "EmailTo";
            this.sendRejectedEmail.MethodInvoking += new System.EventHandler(this.sendRejectedEmail_MethodInvoking);
            this.sendRejectedEmail.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.BodyProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
            this.sendRejectedEmail.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.FromProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
            this.sendRejectedEmail.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.HeadersProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
            this.sendRejectedEmail.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.SubjectProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind11)));
            this.sendRejectedEmail.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.ToProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind12)));
            // 
            // Log_Rejection
            // 
            this.Log_Rejection.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.Log_Rejection.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            activitybind13.Name = "Workflow1";
            activitybind13.Path = "HistoryDescription";
            this.Log_Rejection.HistoryOutcome = "";
            this.Log_Rejection.Name = "Log_Rejection";
            this.Log_Rejection.OtherData = "";
            activitybind14.Name = "Workflow1";
            activitybind14.Path = "logToHistoryListActivity_UserId";
            this.Log_Rejection.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind13)));
            this.Log_Rejection.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.UserIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind14)));
            // 
            // setRejectedHistoryDescription
            // 
            this.setRejectedHistoryDescription.Name = "setRejectedHistoryDescription";
            this.setRejectedHistoryDescription.ExecuteCode += new System.EventHandler(this.setRejectedHistoryDescription_ExecuteCode);
            // 
            // setStateActivity2
            // 
            this.setStateActivity2.Name = "setStateActivity2";
            this.setStateActivity2.TargetStateName = "CompletedState";
            // 
            // sendApprovedEmail
            // 
            this.sendApprovedEmail.BCC = null;
            activitybind15.Name = "Workflow1";
            activitybind15.Path = "EmailBody";
            this.sendApprovedEmail.CC = null;
            this.sendApprovedEmail.CorrelationToken = correlationtoken1;
            activitybind16.Name = "Workflow1";
            activitybind16.Path = "EmailFrom";
            activitybind17.Name = "Workflow1";
            activitybind17.Path = "MailHeaders";
            this.sendApprovedEmail.IncludeStatus = false;
            this.sendApprovedEmail.Name = "sendApprovedEmail";
            activitybind18.Name = "Workflow1";
            activitybind18.Path = "EmailSubject";
            activitybind19.Name = "Workflow1";
            activitybind19.Path = "EmailTo";
            this.sendApprovedEmail.MethodInvoking += new System.EventHandler(this.sendApprovedEmail_MethodInvoking);
            this.sendApprovedEmail.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.ToProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind19)));
            this.sendApprovedEmail.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.SubjectProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind18)));
            this.sendApprovedEmail.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.HeadersProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind17)));
            this.sendApprovedEmail.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.FromProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind16)));
            this.sendApprovedEmail.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.BodyProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind15)));
            // 
            // Log_Approval
            // 
            this.Log_Approval.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.Log_Approval.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            activitybind20.Name = "Workflow1";
            activitybind20.Path = "HistoryDescription";
            this.Log_Approval.HistoryOutcome = "";
            this.Log_Approval.Name = "Log_Approval";
            this.Log_Approval.OtherData = "";
            activitybind21.Name = "Workflow1";
            activitybind21.Path = "logToHistoryListActivity_UserId";
            this.Log_Approval.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind20)));
            this.Log_Approval.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.UserIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind21)));
            // 
            // setApprovedHistoryDescription
            // 
            this.setApprovedHistoryDescription.Name = "setApprovedHistoryDescription";
            this.setApprovedHistoryDescription.ExecuteCode += new System.EventHandler(this.setApprovedHistoryDescription_ExecuteCode);
            // 
            // If_ChangesRequested
            // 
            this.If_ChangesRequested.Activities.Add(this.setRequestChangesHistoryDescription);
            this.If_ChangesRequested.Activities.Add(this.Log_ChangeRequest);
            this.If_ChangesRequested.Activities.Add(this.sendRequestChangesEmail);
            this.If_ChangesRequested.Activities.Add(this.setStateActivity4);
            this.If_ChangesRequested.Name = "If_ChangesRequested";
            // 
            // If_Rejected
            // 
            this.If_Rejected.Activities.Add(this.setRejectedHistoryDescription);
            this.If_Rejected.Activities.Add(this.Log_Rejection);
            this.If_Rejected.Activities.Add(this.sendRejectedEmail);
            this.If_Rejected.Activities.Add(this.setStateActivity3);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.DocumentIsRejected);
            this.If_Rejected.Condition = codecondition1;
            this.If_Rejected.Name = "If_Rejected";
            // 
            // If_Approved
            // 
            this.If_Approved.Activities.Add(this.setApprovedHistoryDescription);
            this.If_Approved.Activities.Add(this.Log_Approval);
            this.If_Approved.Activities.Add(this.sendApprovedEmail);
            this.If_Approved.Activities.Add(this.setStateActivity2);
            codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.DocumentIsApproved);
            this.If_Approved.Condition = codecondition2;
            this.If_Approved.Name = "If_Approved";
            // 
            // completeReviewTask
            // 
            correlationtoken2.Name = "ReviewTaskToken";
            correlationtoken2.OwnerActivityName = "RequestReviewState";
            this.completeReviewTask.CorrelationToken = correlationtoken2;
            this.completeReviewTask.Name = "completeReviewTask";
            activitybind22.Name = "Workflow1";
            activitybind22.Path = "ReviewTaskId";
            this.completeReviewTask.TaskOutcome = null;
            this.completeReviewTask.SetBinding(Microsoft.SharePoint.WorkflowActions.CompleteTask.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind22)));
            // 
            // setStateActivity5
            // 
            this.setStateActivity5.Name = "setStateActivity5";
            this.setStateActivity5.TargetStateName = "RequestApprovalState";
            // 
            // onTaskChanged2
            // 
            activitybind23.Name = "Workflow1";
            activitybind23.Path = "ReviewAfterTaskProperties";
            activitybind24.Name = "Workflow1";
            activitybind24.Path = "ReviewBeforeTaskProperties";
            this.onTaskChanged2.CorrelationToken = correlationtoken2;
            this.onTaskChanged2.Executor = null;
            this.onTaskChanged2.Name = "onTaskChanged2";
            activitybind25.Name = "Workflow1";
            activitybind25.Path = "ReviewTaskId";
            this.onTaskChanged2.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.AfterPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind23)));
            this.onTaskChanged2.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.BeforePropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind24)));
            this.onTaskChanged2.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind25)));
            // 
            // CreateReviewTask
            // 
            this.CreateReviewTask.CorrelationToken = correlationtoken2;
            this.CreateReviewTask.ListItemId = -1;
            this.CreateReviewTask.Name = "CreateReviewTask";
            this.CreateReviewTask.SpecialPermissions = null;
            activitybind26.Name = "Workflow1";
            activitybind26.Path = "ReviewTaskId";
            activitybind27.Name = "Workflow1";
            activitybind27.Path = "ReviewTaskProperties";
            this.CreateReviewTask.MethodInvoking += new System.EventHandler(this.ReviewTask_MethodInvoking);
            this.CreateReviewTask.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTask.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind26)));
            this.CreateReviewTask.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTask.TaskPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind27)));
            // 
            // SelectReviewAction
            // 
            this.SelectReviewAction.Activities.Add(this.If_Approved);
            this.SelectReviewAction.Activities.Add(this.If_Rejected);
            this.SelectReviewAction.Activities.Add(this.If_ChangesRequested);
            this.SelectReviewAction.Name = "SelectReviewAction";
            // 
            // Complete_Pending_Review_Task
            // 
            correlationtoken3.Name = "ApproverTaskToken";
            correlationtoken3.OwnerActivityName = "RequestApprovalState";
            this.Complete_Pending_Review_Task.CorrelationToken = correlationtoken3;
            this.Complete_Pending_Review_Task.Name = "Complete_Pending_Review_Task";
            activitybind28.Name = "Workflow1";
            activitybind28.Path = "ApproverTaskId";
            this.Complete_Pending_Review_Task.TaskOutcome = null;
            this.Complete_Pending_Review_Task.SetBinding(Microsoft.SharePoint.WorkflowActions.CompleteTask.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind28)));
            // 
            // ReviewInitiated
            // 
            activitybind29.Name = "Workflow1";
            activitybind29.Path = "ApproverAfterTaskProperties";
            activitybind30.Name = "Workflow1";
            activitybind30.Path = "ApproverBeforeTaskProperties";
            this.ReviewInitiated.CorrelationToken = correlationtoken3;
            this.ReviewInitiated.Executor = null;
            this.ReviewInitiated.Name = "ReviewInitiated";
            activitybind31.Name = "Workflow1";
            activitybind31.Path = "ApproverTaskId";
            this.ReviewInitiated.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.onTaskChanged1_Invoked);
            this.ReviewInitiated.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.AfterPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind29)));
            this.ReviewInitiated.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.BeforePropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind30)));
            this.ReviewInitiated.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind31)));
            // 
            // sendApprovalRequestedEmail
            // 
            this.sendApprovalRequestedEmail.Name = "sendApprovalRequestedEmail";
            this.sendApprovalRequestedEmail.ExecuteCode += new System.EventHandler(this.sendApprovalRequestedEmail_ExecuteCode);
            // 
            // createTask1
            // 
            this.createTask1.CorrelationToken = correlationtoken3;
            this.createTask1.ListItemId = -1;
            this.createTask1.Name = "createTask1";
            this.createTask1.SpecialPermissions = null;
            activitybind32.Name = "Workflow1";
            activitybind32.Path = "ApproverTaskId";
            activitybind33.Name = "Workflow1";
            activitybind33.Path = "ApproverTaskProperties";
            this.createTask1.MethodInvoking += new System.EventHandler(this.CreateApproverTask);
            this.createTask1.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTask.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind32)));
            this.createTask1.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTask.TaskPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind33)));
            // 
            // setStateActivity1
            // 
            this.setStateActivity1.Name = "setStateActivity1";
            this.setStateActivity1.TargetStateName = "RequestApprovalState";
            // 
            // onWorkflowActivated1
            // 
            this.onWorkflowActivated1.CorrelationToken = correlationtoken1;
            this.onWorkflowActivated1.EventName = "OnWorkflowActivated";
            this.onWorkflowActivated1.Name = "onWorkflowActivated1";
            activitybind34.Name = "Workflow1";
            activitybind34.Path = "WorkflowProperties";
            this.onWorkflowActivated1.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.onWorkflowActivated1_Invoked);
            this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind34)));
            // 
            // FinalizeReview
            // 
            this.FinalizeReview.Activities.Add(this.completeReviewTask);
            this.FinalizeReview.Name = "FinalizeReview";
            // 
            // Document_Review
            // 
            this.Document_Review.Activities.Add(this.onTaskChanged2);
            this.Document_Review.Activities.Add(this.setStateActivity5);
            this.Document_Review.Name = "Document_Review";
            // 
            // InitializeRevew
            // 
            this.InitializeRevew.Activities.Add(this.CreateReviewTask);
            this.InitializeRevew.Name = "InitializeRevew";
            // 
            // FinalizeReviewResults
            // 
            this.FinalizeReviewResults.Name = "FinalizeReviewResults";
            // 
            // Evaluate_Review_Status
            // 
            this.Evaluate_Review_Status.Activities.Add(this.ReviewInitiated);
            this.Evaluate_Review_Status.Activities.Add(this.Complete_Pending_Review_Task);
            this.Evaluate_Review_Status.Activities.Add(this.SelectReviewAction);
            this.Evaluate_Review_Status.Name = "Evaluate_Review_Status";
            // 
            // DetermineCurrentState
            // 
            this.DetermineCurrentState.Activities.Add(this.createTask1);
            this.DetermineCurrentState.Activities.Add(this.sendApprovalRequestedEmail);
            this.DetermineCurrentState.Name = "DetermineCurrentState";
            // 
            // InitializeWorkflow
            // 
            this.InitializeWorkflow.Activities.Add(this.onWorkflowActivated1);
            this.InitializeWorkflow.Activities.Add(this.setStateActivity1);
            this.InitializeWorkflow.Name = "InitializeWorkflow";
            // 
            // CompletedState
            // 
            this.CompletedState.Name = "CompletedState";
            // 
            // RequestReviewState
            // 
            this.RequestReviewState.Activities.Add(this.InitializeRevew);
            this.RequestReviewState.Activities.Add(this.Document_Review);
            this.RequestReviewState.Activities.Add(this.FinalizeReview);
            this.RequestReviewState.Name = "RequestReviewState";
            // 
            // RequestApprovalState
            // 
            this.RequestApprovalState.Activities.Add(this.DetermineCurrentState);
            this.RequestApprovalState.Activities.Add(this.Evaluate_Review_Status);
            this.RequestApprovalState.Activities.Add(this.FinalizeReviewResults);
            this.RequestApprovalState.Name = "RequestApprovalState";
            // 
            // Workflow1InitialState
            // 
            this.Workflow1InitialState.Activities.Add(this.InitializeWorkflow);
            this.Workflow1InitialState.Name = "Workflow1InitialState";
            // 
            // Workflow1
            // 
            this.Activities.Add(this.Workflow1InitialState);
            this.Activities.Add(this.RequestApprovalState);
            this.Activities.Add(this.RequestReviewState);
            this.Activities.Add(this.CompletedState);
            this.CompletedStateName = "CompletedState";
            this.DynamicUpdateCondition = null;
            this.InitialStateName = "Workflow1InitialState";
            this.Name = "Workflow1";
            this.CanModifyActivities = false;

        }

        #endregion

        private SetStateActivity setStateActivity1;
        private StateFinalizationActivity FinalizeReview;
        private EventDrivenActivity Document_Review;
        private StateInitializationActivity InitializeRevew;
        private StateFinalizationActivity FinalizeReviewResults;
        private EventDrivenActivity Evaluate_Review_Status;
        private StateInitializationActivity DetermineCurrentState;
        private StateActivity CompletedState;
        private StateActivity RequestReviewState;
        private StateActivity RequestApprovalState;
        private Microsoft.SharePoint.WorkflowActions.CreateTask createTask1;
        private IfElseBranchActivity If_Rejected;
        private IfElseBranchActivity If_Approved;
        private IfElseActivity SelectReviewAction;
        private Microsoft.SharePoint.WorkflowActions.CompleteTask Complete_Pending_Review_Task;
        private Microsoft.SharePoint.WorkflowActions.OnTaskChanged ReviewInitiated;
        private CodeActivity sendApprovalRequestedEmail;
        private IfElseBranchActivity If_ChangesRequested;
        private SetStateActivity setStateActivity4;
        private Microsoft.SharePoint.WorkflowActions.SendEmail sendRequestChangesEmail;
        private Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity Log_ChangeRequest;
        private CodeActivity setRequestChangesHistoryDescription;
        private SetStateActivity setStateActivity3;
        private Microsoft.SharePoint.WorkflowActions.SendEmail sendRejectedEmail;
        private Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity Log_Rejection;
        private CodeActivity setRejectedHistoryDescription;
        private SetStateActivity setStateActivity2;
        private Microsoft.SharePoint.WorkflowActions.SendEmail sendApprovedEmail;
        private Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity Log_Approval;
        private CodeActivity setApprovedHistoryDescription;
        private Microsoft.SharePoint.WorkflowActions.CreateTask CreateReviewTask;
        private Microsoft.SharePoint.WorkflowActions.OnTaskChanged onTaskChanged2;
        private Microsoft.SharePoint.WorkflowActions.CompleteTask completeReviewTask;
        private SetStateActivity setStateActivity5;
        private Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated onWorkflowActivated1;
        private EventDrivenActivity InitializeWorkflow;
        private StateActivity Workflow1InitialState;

















































































































    }
}
